#ifndef COMMUNICATIONMETHOD_H
#define COMMUNICATIONMETHOD_H

#include <QObject>
#include <CommonHelper.h>
#include <Tcpclient.h>
#include <UdpClient.h>
#include <LogHelper.h>
#include <QSqlDatabase>
#include <DbHelper.h>
#include <ExperimentThread.h>
#include <LogHelper.h>
#include <CommCommand.h>

class CommunicationMethod: public QObject
{
    Q_OBJECT
public:
    CommunicationMethod();
    ~CommunicationMethod();

    Q_INVOKABLE void startExperiment();//启动实验
    Q_INVOKABLE void stopExperiment(int);//实验中操作 0停止,1暂停,2继续,3急停
    Q_INVOKABLE int checkConsumablesSyring(QString);
    Q_INVOKABLE void stepOperatingSimulation(QString,QList<QString>);
    Q_INVOKABLE void setConsumable(QString);



signals:
    void startDemoThread();

private:
    CommonHelper *common;
    Loghelper *log;
    UdpClient *udpClient;
};

#endif // COMMUNICATIONMETHOD_H
